package com.example.demos.dao;

import com.example.demos.model.AdminUser;
import com.example.demos.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface AdminUserDao {
//    @Select("select id,name,time from user where id=${stuId}")
//    User selectById(@Param("stuId") Integer id);

    List<Object> selectByList();
    AdminUser selectById(@Param("id") Integer id);
    AdminUser selectByMobile(@Param("stuMobile") String username);
    boolean selectByPassword(@Param("username") String username,@Param("password") String password);
}